package com.imooc.food.orderservicerestaurant.dao;

import com.imooc.food.orderservicerestaurant.po.ProductPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author joy
 * @email 413735709@qq.com
 * @date 2021/12/2 10:13 下午
 */
@Mapper
@Repository
public interface ProductDao {

    @Select("SELECT id,name,price,restaurant_id restaurantId,status,date "+
    "FROM product WHERE id=#{id}")
    ProductPO selectProduct(Integer id);


}
